!!!
%html
  %head
    %title TranslationCenter

    = stylesheet_link_tag    "translation_center/application", :media => "all"
    = javascript_include_tag "translation_center/application"
    = csrf_meta_tags
  %body


    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          %a.btn.btn-navbar{"data-target" => ".navbar-responsive-collapse", "data-toggle" => "collapse"}
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.brand{:href => root_url}
            = favicon_link_tag
            = Rails.application.class.parent_name
          .nav-collapse.collapse.navbar-responsive-collapse
            %ul.nav
              %li.divider-vertical
              / .pull-left.nav_text
              /   = t('.from')
              / %li.dropdown.pull-left
                
              /   %a.dropdown-toggle{"data-toggle" => "dropdown", href: '#'}
              /     = language_name(from_lang)
              /     %b.caret
              /   %ul.dropdown-menu
              /     - I18n.available_locales.each do |locale|
              /       %li
              /         %a.language_from{ href: '#', lang_sym: locale}
              /           = language_name(locale)
              
              .pull-left.nav_text
                %span
                  = t('translation_center.translate_to')
              %li.dropdown.pull-left
                %a.dropdown-toggle{"data-toggle" => "dropdown", href: '#'}
                  = language_name(to_lang)
                  %b.caret
                %ul.dropdown-menu
                  - I18n.available_locales.each do |locale|
                    %li
                      %a.language_to{ href: change_locale_url(locale), lang_sym: locale}
                        = language_name(locale)
              - if translation_admin?
                .pull-left.nav_text
                  %span
                    = link_to t('translation_center.dashboard'), dashboard_path
              %li.divider-vertical
              %form.navbar-search
                %input#search_keys.search-query{placeholder: t('translation_center.search_keys'), type: "text", autocomplete: :off}
              %form.navbar-search{action: search_translations_path}
                %input#translations.search-query{placeholder: t('translation_center.search_translations'), type: "text", autocomplete: :off, name: :translation_value, value: params[:translation_value]}
            
            %ul.nav.pull-right
              %li
                = link_to t('translation_center.back_to_app'), main_app.root_path, target: Rails.application.class.parent_name
    - if flash[:alert] 
      .alert.alert-error
        %button{ type: 'button', class: 'close', 'data-dismiss' => 'alert' }
          ×
        = flash[:alert]

    - if flash[:notice]
      .alert.alert-success
        %button{ type: 'button', class: 'close', 'data-dismiss' => 'alert' }
          ×
        = flash[:notice]
        
    .container
      .row
        .span12
          %input#tc_no_inspector{ value: 'true' ,type: :hidden }
          = yield
        
